<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:include page="../../common/jsp/taglibs.jsp"/>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>新增/修改部门</title>
    <jsp:include page="../../common/jsp/head.jsp"/>
    <link href="${ctx}css/public.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<input id="type" type="hidden" value='${type}'/>
<input id="groupId" type="hidden" value='<s:property value="group.id"/>'>
<input id="companyIdTemp" type="hidden" value='<s:property value="group.companyId"/>'>
<form class="layui-form">
    <table class="layui-table">
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label"><em>*</em>部门名称</label>
                    <div class="layui-input-block">
                        <input id="groupName" type="text" lay-verify="verifyGroupName" placeholder="请输入部门名称"
                               class="layui-input"
                               size="25" maxlength="25" value='<s:property value="group.groupName"/>'/>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item">
                    <label class="layui-form-label"><em>*</em>所属公司</label>
                    <div class="layui-input-block">
                        <select id="companyId" lay-verify="verifyCompany">
                            <option value="">请选择公司</option>
                        </select>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <textarea id="remark" class="layui-textarea"
                                  onkeyup="if(this.value.length>150) this.value=this.value.substr(0,150)"><s:property
                                value="group.remark"/></textarea>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <div class="layui-form-item">
        <div class="layui-input-inline" style="float:right;margin-top:25px;">
            <a style="float: right;" class="layui-btn layui-btn-primary close">取消</a>
            <a id="submit" style="float: right; margin-right: 15px;" class="layui-btn" lay-submit lay-filter="submit">提交</a>
        </div>
    </div>
</form>
</body>
</html>
<script type="text/javascript" src="${ctx}common/js/closeAndRefresh.js?version=${version}"></script>
<script type="text/javascript" src="${ctx}js/group/addOrUpdateGroup.js?version=${version}"></script>